<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
    </style>
  </head>

  <body>
    <canvas width="200" height="200" id="canvas"></canvas>
  </body>
  <script>
    let drawing = document.getElementById('canvas')
    let context = drawing.getContext('2d')
    context.fillStyle = '#bfa'
    context.fillRect(0, 0, 50, 50)
    context.fillStyle = 'rgba(0,255,255,0.5)'

    context.fillRect(10, 10, 50, 50)
    context.strokeStyle = 'red'
    context.strokeRect(0, 0, 50, 50)
  </script>
</html>
